import type { UserInfoVO } from './UserInfo'

type TbMessage = {
  mid: number
  uid: number
  title: string
  info: string
  hits: number
  praise: number
  reply: number
  reason: string
  deleted: string
  lastupdate: number
  user: UserInfoVO
  exInfo: TbMessageExInfo
}

type TbMessageReport = {
  mrid: number
  mid: number
  uid: number
  info: string
  created: string
}

type TbMessageExInfo = {
  praised: boolean
  mine: boolean
}

type TbMessageReply = {
  mrid: number
  mid: number
  uid: number
  info: string
  praise: number
  lastupdate: number
  user: UserInfoVO
  exInfo: TbMessageReplyExInfo
}

type TbMessageReplyExInfo = {
  praised: boolean
  mine: boolean
}

export type { TbMessage, TbMessageExInfo, TbMessageReply, TbMessageReplyExInfo, TbMessageReport }
